package com.qianfeng.service.impl;

import com.qianfeng.mapper.GoodsClassMapper;
import com.qianfeng.pojo.GoodsClass;
import com.qianfeng.service.GoodsClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * TODO
 *
 * @author DELL
 * @date 2021-9-22 16:15
 */
@Service
public class GoodsClassServiceImpl implements GoodsClassService {
    @Autowired
    private GoodsClassMapper goodsClassMapper;
    @Override
    public List<GoodsClass> selectAll() {
        return goodsClassMapper.findAll();
    }
    @Override
    public void deleteAll(Integer[] ids) {
        goodsClassMapper.deleteAll(ids);
    }

    @Override
    public void deleteById(Integer id){
        goodsClassMapper.deleteById(id);
    }
    @Override
    public void add(GoodsClass goodsClass){
        goodsClassMapper.add(goodsClass);
    }
    @Override
    public void updateClass(GoodsClass goodsClass){
        goodsClassMapper.updateClass(goodsClass);
    }
}
